<div ms-controller="user" class="user">
	<h1 class="title"><a href="#!/regList/regList">用户注册列表</a><span class="conten">用户信息</span></h1>
	<div class="userTop">
		<ul>
			<li ms-click="toggle(0)" class="current">用户信息</li>
			<li ms-click="toggle(1)">预约记录</li>
		</ul>
	</div>
	<table class="content1 ms-tabs" ms-if="currentIndex === 0">
		<tr>
			<td class="firstTd">ID</td>
			<td>{{user.userid}}</td>
		</tr>
		<tr>
			<td>头像</td>
			<td><img ms-src="qn+user.icon"/></td>
		</tr>
		<tr>
			<td>姓名</td>
			<td>{{user.realName}}</td>
		</tr>
		<tr>
			<td>账号</td>
			<td>{{user.loginname}}</td>
		</tr>
		<tr>
			<td>身份证号</td>
			<td>{{user.cardId}}</td>
		</tr>
		<tr>
			<td>性别</td>
			<td><label ms-if="user.gender==1">男</label><label ms-if="user.gender==2">女</label></td>
		</tr>
		<tr>
			<td>出生日期</td>
			<td>{{user.age  | date("yyyy-MM-dd HH:mm:ss")}}</td>
		</tr>
		<tr>
			<td>联系地址</td>
			<td>{{user.address}}</td>
		</tr>
		<tr>
			<td>备注信息</td>
			<td><p>{{user.remark}}</p></td>
		</tr>
		<tr>
			<td>最近登陆时间</td>
			<td>{{user.updatetime | date("yyyy-MM-dd HH:mm:ss")}}</td>
		</tr>
		<tr>
			<td>注册时间</td>
			<td>{{user.createtime | date("yyyy-MM-dd HH:mm:ss")}}</td>
		</tr>
	</table>
	<div class="content2 ms-tabs" ms-if="currentIndex === 1">
		<table class="table">
			<thead>
				<tr>
					<th>预约编号</th>
					<th>就诊人</th>
					<th>手机号</th>
					<th>预约时间</th>
					<th>预约状态</th>
				</tr>
			</thead>
			<tbody>
				<tr ms-repeat="reg">
					<td>{{el.regcode}}</td>
					<td>{{el.patientName}}</td>
					<td>{{el.telephone}}</td>
					<td>{{el.regdate  | date("yyyy-MM-dd HH:mm:ss")}}</td>
					<td><label ms-if="el.delflag=='t'">待处理</label><label ms-if="el.delflag=='f'">已过期</label>
						<label ms-if="el.delflag=='s'">已处理</label></td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
